﻿using System;

namespace Skyhook.TransactionControl.Objects {
    public class ExampleObject2 {
        public static void DoWork(string value = "2") {
            if (string.IsNullOrEmpty(value)) throw new ApplicationException("Value can not be empty!");
            var command = DataAccess.CreateCommand();

            command.CommandText = "UPDATE Region SET RegionDescription = 'Western - " + value + "' WHERE (RegionID = 2)";
            command.Execute();
        }
    }
}